/*
   Bacula(R) - The Network Backup Solution

   Copyright (C) 2000-2025 Kern Sibbald

   The original author of Bacula is Kern Sibbald, with contributions
   from many others, a complete list can be found in the file AUTHORS.

   You may use this file and others of this release according to the
   license defined in the LICENSE file, which includes the Affero General
   Public License, v3.0 ("AGPLv3") and some additional permissions and
   terms pursuant to its AGPLv3 Section 7.

   This notice must be preserved when any source code is
   conveyed and/or propagated.

   Bacula(R) is a registered trademark of Kern Sibbald.
*/

/*
 *  sql_cmds.c contains all the SQL commands that are either issued by the
 *    Director or which are database backend specific.
 *
 *   This file defines the external definitions necessary to
 *    build on Windows
 *
 *     Kern Sibbald, July MMII
 */

extern const char CATS_IMP_EXP *sql_now[];
extern const char CATS_IMP_EXP *sql_clear_malware_table[];
extern const char CATS_IMP_EXP *batch_fill_filename_query[];
extern const char CATS_IMP_EXP *batch_fill_path_query[];
extern const char CATS_IMP_EXP *batch_lock_filename_query[];
extern const char CATS_IMP_EXP *batch_lock_path_query[];
extern const char CATS_IMP_EXP *batch_unlock_tables_query[];
extern const char CATS_IMP_EXP *bvfs_select_delta_version_with_basejob_and_delta[];
extern const char CATS_IMP_EXP *get_created_running_job;
extern const char CATS_IMP_EXP *cleanup_created_job;
extern const char CATS_IMP_EXP *cleanup_running_job;
extern const char CATS_IMP_EXP *sync_jobhisto[];
extern const char CATS_IMP_EXP *client_backups;
extern const char CATS_IMP_EXP *cnt_File;
extern const char CATS_IMP_EXP *create_delindex;
extern const char CATS_IMP_EXP *create_deltabs[];
extern const char CATS_IMP_EXP *create_temp_accurate_jobids[];
extern const char CATS_IMP_EXP *create_temp_basefile[];
extern const char CATS_IMP_EXP *create_temp_new_basefile[];
extern const char CATS_IMP_EXP *del_MAC;
extern const char CATS_IMP_EXP *drop_deltabs[];
extern const char CATS_IMP_EXP *to_unix_timestamp[];
extern const char CATS_IMP_EXP *expired_volumes[];
extern const char CATS_IMP_EXP *fill_jobhisto;
extern const char CATS_IMP_EXP *get_restore_objects;
extern const char CATS_IMP_EXP *insert_counter_values[];
extern const char CATS_IMP_EXP *list_pool;
extern const char CATS_IMP_EXP *match_query[];
extern const char CATS_IMP_EXP *select_counter_values[];
extern const char CATS_IMP_EXP *select_recent_version[];
extern const char CATS_IMP_EXP *select_recent_version_with_basejob[];
extern const char CATS_IMP_EXP *select_recent_version_with_basejob_and_delta[];
extern const char CATS_IMP_EXP *sel_JobMedia;
extern const char CATS_IMP_EXP *sql_bvfs_list_all_files[];
extern const char CATS_IMP_EXP *sql_bvfs_list_files[];
extern const char CATS_IMP_EXP *sql_bvfs_select[];
extern const char CATS_IMP_EXP *sql_get_max_connections[];
extern const char CATS_IMP_EXP *sql_media_order_most_recently_written[];
extern const char CATS_IMP_EXP *uap_upgrade_copies_oldest_job[];
extern const char CATS_IMP_EXP *uar_count_files;
extern const char CATS_IMP_EXP *uar_count_files;
extern const char CATS_IMP_EXP *uar_create_temp[];
extern const char CATS_IMP_EXP *uar_create_temp1[];
extern const char CATS_IMP_EXP *uar_del_temp;
extern const char CATS_IMP_EXP *uar_del_temp1;
extern const char CATS_IMP_EXP *uar_dif;
extern const char CATS_IMP_EXP *uar_file[];
extern const char CATS_IMP_EXP *uar_full;
extern const char CATS_IMP_EXP *uar_inc;
extern const char CATS_IMP_EXP *uar_jobid_fileindex;
extern const char CATS_IMP_EXP *uar_jobid_fileindex_from_dir[];
extern const char CATS_IMP_EXP *uar_jobid_fileindex_from_table;
extern const char CATS_IMP_EXP *uar_jobids_fileindex;
extern const char CATS_IMP_EXP *uar_last_full;
extern const char CATS_IMP_EXP *uar_list_jobs;
extern const char CATS_IMP_EXP *uar_list_temp;
extern const char CATS_IMP_EXP *uar_mediatype;
extern const char CATS_IMP_EXP *uar_print_jobs;
extern const char CATS_IMP_EXP *uar_sel_all_temp;
extern const char CATS_IMP_EXP *uar_sel_all_temp1;
extern const char CATS_IMP_EXP *uar_sel_files;
extern const char CATS_IMP_EXP *uar_sel_fileset;
extern const char CATS_IMP_EXP *uar_sel_filesetid;
extern const char CATS_IMP_EXP *uar_sel_jobid_temp;
extern const char CATS_IMP_EXP *update_counter_values[]; 
extern const char CATS_IMP_EXP *expires_in[];
extern const char CATS_IMP_EXP *prune_cache[];
extern const char CATS_IMP_EXP *strip_restore[];
extern const char CATS_IMP_EXP *poolbytes[];
extern const char CATS_IMP_EXP *count_all_jobs;
extern const char CATS_IMP_EXP *count_success_jobs;
extern const char CATS_IMP_EXP *count_success_jobids;
extern const char CATS_IMP_EXP *count_error_jobs;
extern const char CATS_IMP_EXP *count_error_jobids;
extern const char CATS_IMP_EXP *count_warning_jobs;
extern const char CATS_IMP_EXP *count_warning_jobids;
extern const char CATS_IMP_EXP *sum_jobs_bytes;
extern const char CATS_IMP_EXP *sum_jobids_bytes;
extern const char CATS_IMP_EXP *sum_jobs_files;
extern const char CATS_IMP_EXP *sum_jobids_files;
extern const char CATS_IMP_EXP *count_all_volumes;
extern const char CATS_IMP_EXP *count_avl_volumes;
extern const char CATS_IMP_EXP *count_error_volumes;
extern const char CATS_IMP_EXP *count_full_volumes;
extern const char CATS_IMP_EXP *count_used_volumes;
extern const char CATS_IMP_EXP *sum_volumes_bytes;
extern const char CATS_IMP_EXP *get_volume_size;
extern const char CATS_IMP_EXP *escape_char_value[];
extern const char CATS_IMP_EXP *regexp_value[];
extern const char CATS_IMP_EXP *copy_object[];
extern const char CATS_IMP_EXP *sql_like[];
